package com.link.base.base.product.dao.mybatis.mapper;

import com.link.base.base.product.model.PartsCostTemp;
import com.link.base.base.product.model.PartsCostTempData;
import com.link.core.basic.dao.mapper.BasicMapper;
import com.link.core.basic.model.CallParam;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 成本信息汇总临时对象
 *
 * @date 2023-08-15 09:04:14
 */
public interface PartsCostTempMapper extends BasicMapper<PartsCostTemp> {

    void runPartsCostTempDataCheck(CallParam record) throws Exception;

    void runPartsCostTempDataImport(CallParam record) throws Exception;

    void addData(PartsCostTempData partsCostTempData);

    void addErrorData(PartsCostTempData partsCostTempData);

    void batchInserts(List<PartsCostTempData> list);

    void deleteAll(PartsCostTemp partsCostTemp) throws Exception;

    List<PartsCostTemp> queryToImportData();

    void batchSuccessUpdates(@Param("ids") List<Long> ids);

    void batchFailUpdates(@Param("ids") List<Long> ids);


    void runDataCheck(CallParam record) throws Exception;

    void runDataImport(CallParam record) throws Exception;

    void updateCheckFail(List<PartsCostTemp> list) throws Exception;

    void updateCheckSuccess(List<PartsCostTemp> list) throws Exception;


}
